home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic 4 Database How-To
/
Visual Basic 4 Database - How-to (The Waite Group)(1995).iso
/
editcont.fr_
/
editcont.fr
Wrap
Text File
|
1995-07-20
|
3KB
|
94 lines
VERSION 4.00
Begin VB.Form frmShowEdit
Caption = "Update Publishers"
ClientHeight = 6510
ClientLeft = 1095
ClientTop = 1515
ClientWidth = 5745
Height = 7005
Left = 990
LinkTopic = "Form1"
ScaleHeight = 6510
ScaleWidth = 5745
Top = 1125
Width = 5955
Begin VB.TextBox txtRecordCount
BackColor = &H00C0C0C0&
Height = 285
Left = 1680
TabIndex = 3
Top = 3840
Width = 2535
End
Begin VB.TextBox txtConnection
BackColor = &H00C0C0C0&
Height = 285
Left = 1680
TabIndex = 1
Top = 3480
Width = 2535
End
Begin VB.CommandButton cmdQuit
Caption = "&Quit"
Height = 495
Left = 2760
TabIndex = 4
Top = 2760
Width = 1215
End
Begin VB.Label lblRecordCount
Alignment = 1 'Right Justify
Caption = "&Record Count:"
Height = 255
Left = 360
TabIndex = 2
Top = 3840
Width = 1215
End
Begin VB.Label lblConnection
Alignment = 1 'Right Justify
Caption = "&Connection:"
Height = 255
Left = 360
TabIndex = 0
Top = 3480
Width = 1215
End
End
Attribute VB_Name = "frmShowEdit"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Dim EditDB As VBHTEditTitlesDB.EditPublishers
Private Sub cmdQuit_Click()
Set EditDB = Nothing
Unload Me
End Sub
Private Sub Form_Load()
Set EditDB = New VBHTEditTitlesDB.EditPublishers
Dim border As Integer
EditDB.SetOnForm frmShowEdit.hWnd
txtConnection = EditDB.Connection
txtRecordCount = EditDB.NumRecords
border = 0.05 * EditDB.Width
EditDB.Move border, border
frmShowEdit.Width = EditDB.Width + 2 * border + (frmShowEdit.Width - frmShowEdit.ScaleWidth)
lblConnection.Move border, EditDB.Height + 2 * border
txtConnection.Move lblConnection.Width + 1.5 * border, lblConnection.TOP
lblRecordCount.Move border, EditDB.Height + 2 * border + lblConnection.Height
txtRecordCount.Move txtConnection.Left, lblRecordCount.TOP
cmdQuit.Move frmShowEdit.ScaleWidth - cmdQuit.Width - border, lblConnection.TOP
frmShowEdit.ScaleHeight = cmdQuit.TOP + cmdQuit.Height + border
End Sub